import fetch from '@/utils/fetch'

export function apiGetRepairList (listQuery) {
  return fetch({
    url: '/api/v1/maintenanceRecord/queryManagement',
    method: 'GET',
    params: listQuery
  })
}

export function apiPointRepairRecordExport (listQuery) {
  return fetch({
    url: '/api/v1/maintenanceRecord/export/point',
    method: 'POST',
    params: listQuery,
    responseType: 'arraybuffer'
  })
}

export function apiFactoryRepairRecordExport (listQuery) {
  return fetch({
    url: '/api/v1/maintenanceRecord/export/factory',
    method: 'POST',
    params: listQuery,
    responseType: 'arraybuffer'
  })
}
